package com.yuwei.bean;


import java.util.Date;

public class User {
    String userName;
    String userPwd;
    String email;
    boolean ms_state;
    int id;
    int role_id;
    String role_name;
    String mobile;
    String create_time;
    String modify_time;
    private String getNowTime(){
        Date date = new Date();
        return date.toLocaleString();
    }
    public User()
    {
        create_time = getNowTime();
        ms_state = true;
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;

    }

    public int getRole_id() {
        return role_id;
    }

    public void setRole_id(int role_id) {
        this.role_id = role_id;
    }

    public boolean isMs_state() {
        return ms_state;
    }

    public void setMs_state(boolean ms_state) {
        this.ms_state = ms_state;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRole_name() {
        return role_name;
    }

    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCreate_time() {
        return create_time;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", email='" + email + '\'' +
                ", ms_state=" + ms_state +
                ", id=" + id +
                ", role_name='" + role_name + '\'' +
                ", mobile='" + mobile + '\'' +
                ", create_time='" + create_time + '\'' +
                ", modify_time='" + modify_time + '\'' +
                '}';
    }
}
